package com.laowang.project.system.service.impl;

import java.util.List;
                                        import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhShopCattleUserRelationMapper;
import com.laowang.project.system.domain.MyCyhShopCattleUserRelation;
import com.laowang.project.system.service.MyCyhShopCattleUserRelationService;

/**
 * 商家用户与铺Service业务层处理
 *
 * @author laowang
 * @date 2024-05-08
 */
@Service
public class MyCyhShopCattleUserRelationServiceImpl implements MyCyhShopCattleUserRelationService {
    @Autowired
    private MyCyhShopCattleUserRelationMapper myCyhShopCattleUserRelationMapper;

    /**
     * 查询商家用户与铺
     *
     * @param id 商家用户与铺ID
     * @return 商家用户与铺
     */
    @Override
    public MyCyhShopCattleUserRelation selectMyCyhShopCattleUserRelationById(Integer id) {
        return myCyhShopCattleUserRelationMapper.selectMyCyhShopCattleUserRelationById(id);
    }

    /**
     * 查询商家用户与铺列表
     *
     * @param myCyhShopCattleUserRelation 商家用户与铺
     * @return 商家用户与铺
     */
    @Override
    public List<MyCyhShopCattleUserRelation> selectMyCyhShopCattleUserRelationList(MyCyhShopCattleUserRelation myCyhShopCattleUserRelation) {
        return myCyhShopCattleUserRelationMapper.selectMyCyhShopCattleUserRelationList(myCyhShopCattleUserRelation);
    }

    /**
     * 新增商家用户与铺
     *
     * @param myCyhShopCattleUserRelation 商家用户与铺
     * @return 结果
     */
    @Override
    public int insertMyCyhShopCattleUserRelation(MyCyhShopCattleUserRelation myCyhShopCattleUserRelation) {
                                                                            return myCyhShopCattleUserRelationMapper.insertMyCyhShopCattleUserRelation(myCyhShopCattleUserRelation);
    }

    /**
     * 修改商家用户与铺
     *
     * @param myCyhShopCattleUserRelation 商家用户与铺
     * @return 结果
     */
    @Override
    public int updateMyCyhShopCattleUserRelation(MyCyhShopCattleUserRelation myCyhShopCattleUserRelation) {
                                                                            return myCyhShopCattleUserRelationMapper.updateMyCyhShopCattleUserRelation(myCyhShopCattleUserRelation);
    }

    /**
     * 批量删除商家用户与铺
     *
     * @param ids 需要删除的商家用户与铺ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhShopCattleUserRelationByIds(Integer[] ids) {
        return myCyhShopCattleUserRelationMapper.deleteMyCyhShopCattleUserRelationByIds(ids);
    }

    /**
     * 删除商家用户与铺信息
     *
     * @param id 商家用户与铺ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhShopCattleUserRelationById(Integer id) {
        return myCyhShopCattleUserRelationMapper.deleteMyCyhShopCattleUserRelationById(id);
    }

    @Override
    public List<Integer> selectShopByMerchantUser(Integer mid) {
        return myCyhShopCattleUserRelationMapper.selectShopByMerchantUser(mid);
    }
}
